import java.util.*;
public class Main extends Thread
{
    final static double Delta = 0.01;
    final static double eps = 0.05;
    final static int T = 5;
    final static double R0 = 1.0;
    private static double Integral(double l)
    {
	double result = Math.sqrt(5) * Delta  * 40  * (1 - Math.cos(l * Math.PI) * Math.exp(-Delta * 40)) /(Math.pow(l * Math.PI, 2) + Math.pow(Delta * 40, 2));
	return result;
    }
    public static void main(String []args)
    {
	try
	{
	    Scanner in = new Scanner(System.in);
	    double mu = in.nextDouble();
	    double b[] = new double[1000000];
	    b[0] = Integral(0) - 1.0 ;
	    b[1] = Integral(1);
	    b[2] = Integral(2);
	    double temp = b[0] * b[0] + b[1] * b[1] * 2 + 0.23;
	    int p = 0;
	    while (Math.abs(1 - temp) >= eps)
	    {
		b[++p] = Integral(p);
		temp += 2 * b[p] * b[p];
	    }
	    int N = 2 * p + 1;
	    double c[] = new double [N];
	    temp = 0;
	    for (int i = 0; i < N; ++i)
	    {
		c[i] = b[Math.abs(i - p)];
		temp += c[i] * c[i];
	    }
	    temp = Math.sqrt(temp);
	    for (int i = 0; i < N; ++i)
		c[i] /= temp;
	    int n = (int)(T / Delta);
	    HashMap<Integer, Random> Gauss = new HashMap();
	    for (int i = - N; i <= n - 2; ++i)
	    {
		Gauss.put(i, new Random(System.nanoTime()));

	    }
	    for (int number = 1; number <= 3; ++number)
	    {
		System.out.println("Process #" + number + ": ");
		for (int i = 0; i < n; ++i)
		{
		    temp = mu;
		    for (int k = 0; k < N; ++k)
		    {
			temp += c[k] * Gauss.get(i  - k - 1).nextGaussian();
		    }
		    System.out.print(temp + " ");
		}
		System.out.println();
	    }
	}
	catch(Throwable e){System.out.println(e.getMessage());}
    }
}